package com.joey.order.config;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @author: Joey
 * @Description:
 * @date:2024/6/24 23:29
 */
@Data
@Component
//@RefreshScope
@ConfigurationProperties(prefix = "mk.order")
public class OrderProperties {
//    @NacosValue("${joey.order.maxNum}")
    private Integer maxNum;
}
